import axios from "@/api/config"

export const login = data => axios.post('/login', data)  //用户登陆接口

export async function outlogin() { //用户退出登陆
    const url = '/sso/system/logout' + "?refreshToken=" + localStorage.getItem("refreshToken");
    const res = await axios.post(url);
    return res.data;
}
export async function getMenu() {
  const url = '/data/menu.json';
  const res = await axios.get(url);
  return res;
}
export async function getShopMenu() {
  const url = '/data/shopMenu.json';
  const res = await axios.get(url);
  return res;
}

